package com.study.mike.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.mike.model.entity.Role;
import com.study.mike.model.po.SortOtherPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author KangHui
 * @Date 2022/8/19 16:18
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 按不同维度筛选角色信息
     *
     * @param po
     * @return
     */
    List<Role> sortOther(@Param("param") SortOtherPO po);

    /**
     * 批量插入
     *
     * @param Role
     * @return
     */
    Integer batchInsert(@Param("list") List<Role> Role);
}
